Extensions I use or want to use in VS Code.
I add links and explanations so you can use them too if you want.
Such as syntax highlighting and linting.
var game = new Phaser.Game(400, 490, Phaser.AUTO, 'phaser-area'); | |
var player; | |
var coinGroup; | |
var cursors; | |
var playerSpeed = 3; | |
game.state.add('main', { | |
preload: function() { | |
game.stage.backgroundColor = '#ffffdd'; | |
game.load.image('player', '../../common/img/buta2.png'); | |
game.load.image('coin', '../../common/img/coin.png'); |
CREATE OR REPLACE FUNCTION base36_decode(IN base36 varchar) | |
RETURNS bigint AS $$ | |
DECLARE | |
a char[]; | |
ret bigint; | |
i int; | |
val int; | |
chars varchar; | |
BEGIN | |
chars := '0123456789abcdefghijklmnopqrstuvwxyz'; |
Last updated: 09/05/24
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
import * as React from 'react'; | |
import { DateTime } from 'luxon'; | |
import { Calendar as CalendarIcon } from 'lucide-react'; | |
import { Button } from '@/components/ui/Button'; | |
import { Calendar } from '@/components/ui/Calendar'; | |
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/Popover'; | |
import { cn } from '@/lib/utils'; | |
import { SelectSingleEventHandler } from 'react-day-picker'; | |
import { Label } from '@/components/ui/Label'; |
extension URLResponse { | |
/// Returns casted `HTTPURLResponse` | |
var http: HTTPURLResponse? { | |
return self as? HTTPURLResponse | |
} | |
} | |
extension HTTPURLResponse { | |
/// Returns `true` if `statusCode` is in range 200...299. | |
/// Otherwise `false`. |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
package main | |
import ( | |
"firebase.google.com/go" | |
"cloud.google.com/go/firestore" | |
"context" | |
"log" | |
"fmt" | |
) |